﻿using System;
using System.Collections.Generic;
using System.Text;
using NVNC;

namespace VNCTest
{
    class Program
    {
        static void Main(string[] args)
        {
            //VncServer s = new VncServer("test", 5901, "T!T@N-VNC");

            /// <summary>
            /// This Constructor Enables UVNC's Mode 2 Repeater Support
            /// </summary>
            /// <param name="password">This VNC's servers password</param>
            /// <param name="port">Port Number to listen on</param>
            /// <param name="name">VNC server name</param>
            /// <param name="repeaterHost"> Repeat host:port eample repeater.example.com:5500 </param>
            /// <param name="repeaterID">The ID for for  Mode 2 Connections</param>
            VncServer s = new VncServer("test", 5901, "T!T@N-VNC", "192.168.1.50:5500", "1000");

            

            try
            {
                //s.Start();
                s.StartRepeater();
            }
            catch (ArgumentNullException ex)
            {
                Console.WriteLine(ex.Message);
                return;
            }
            Console.ReadLine();
        }
    }
}
